﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace Ling.ZhControls
{
    public static class WinAPI
    {
        /// <summary> 
        /// 获得当前进程，以便重绘控件 
        /// </summary> 
        /// <param name="hWnd"></param> 
        /// <returns></returns> 
        [DllImport("user32.dll")]
        public static extern IntPtr GetWindowDC(IntPtr hWnd);
        
        [DllImport("user32.dll")]
        public static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC);

        public const int WM_NCPAINT = 0x85;
        public const int WM_NCCALCSIZE = 0x83;
        public const int SC_MAXIMIZE = 0xF030;
    }
}
